package com.iqismart.shorturl.exception;

/**
 * @Description
 * @Auther sty
 * @createTime 2019/10/14 01:41
 */

public class RepositoryException extends BaseException {
    GlobalExceptionType exceptionType;

    public RepositoryException() {
        this.exceptionType = GlobalExceptionType.REPOSITORY_EXCEPTION;
        this.code = this.exceptionType.code;
        this.message = this.exceptionType.message;
        this.description = this.exceptionType.description;
    }

    public RepositoryException(String message) {
        this();
        this.message = message;
    }
}
